package com.lantu.wisdom.service;

import com.lantu.wisdom.dto.AddAppraisalTypeDTO;
import com.lantu.wisdom.dto.SearchAppraisalTypeDTO;
import com.lantu.wisdom.dto.vo.SearchAppraisalTypeVO;
import com.lantu.wisdom.model.WAppraisalType;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 鉴定类型表 服务类
 * </p>
 *
 * @author zch
 * @since 2021-06-15
 */
public interface WAppraisalTypeApi extends IService<WAppraisalType> {

    /**
     * 添加类型
     * @param dto
     * @return
     */
    boolean addAppraisalType(AddAppraisalTypeDTO dto);

    /**
     * 获取首页数据
     */
    List<SearchAppraisalTypeDTO> getAppraisalTypeList();

    /**
     * 根据code查询分类
     */
    List<SearchAppraisalTypeVO> getAppraisalTypeByCode(String code);

    /**
     * 首页推荐
     * @return
     */
    List<SearchAppraisalTypeVO> MainPageIntroduction();
}
